import $http from '@/common/api/request.js'
const preUrl = '/shopcar'
export default{
	getShopCar(){
		return $http.request({
			url: preUrl +'/get',
			method:'get'
			});
	},
	addShopCar(shopId){
		return $http.request({
			url: preUrl +'/add',
			method:'get',
			data:{'id':shopId}
			});
	},
	updateShopCar(shopCar){
		return $http.request({
			url: preUrl +'/update',
			method:'post',
			data:shopCar
			});
	},
	deleteShopCar(){
		return $http.request({
			url: preUrl +'/delete',
			method:'get'
			});
	}
}